<?php

namespace app\index\controller;

use think\Controller;
use think\Request;

class Base extends Controller
{
   public function __construct()
   {
       if(!session('?users')){

           return $this->error("您当前还未登录，请先登录。",'index/login/index');
       }
   }

   public function quit(){
        session(null);
        return $this->success("退出成功",'index/login/index');
   }
}
